package itsm.isperp.framework.collection.map;

import java.util.HashMap;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2014-11-21
 * @since 1.0
 * 
 */
public class LowercaseKeyHashMap<K, V> extends HashMap<K, V> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public V put(K key, V value) {

		if (key instanceof String) {
			K k = (K) key.toString().toLowerCase();
			return super.put(k, value);
		} else {
			return super.put(key, value);
		}

	}

}
